local skill = fk.CreateSkill({
  name = "level2__bingqing",
  tags = {Skill.Compulsory},
})

skill:addEffect(fk.Damaged, {
  anim_type = "masochism",
  on_use = function(self, event, target, player, data)
    if not player.dead then
      local room = player.room
      local n = data.from:getHandcardNum() - player:getHandcardNum()
      if n > 0 then
        room:askToDiscard(data.from, {
          min_num = n,
          max_num = n,
          include_equip = false,
          skill_name = skill.name,
          cancelable = false
        })
      else
        data.from:drawCards(-n, skill.name)
      end
    end
  end,
})


Fk:loadTranslationTable {
["level2__bingqing"] = "秉清",
[":level2__bingqing"] = "<b>锁定技</b>，当你受到伤害后，你令伤害来源将手牌数调整至与你相同。",
["$level2__bingqing1"] = "跅弛之士，在御之而已。",
["$level2__bingqing2"] = "内不避亲，外不避仇。",
}
return skill